<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../node_modules/jquery/dist/jquery.min.js"></script>
    <!-- <script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script> -->
    <script src="../dist/pandyle.js"></script>
    <script src="test.js"></script>
</head>

<body>
    <div class="temp">
        <span style="display: block" p-if="'{{title}}' == '书本'">{{title}}</span>
        <div p-context="author">
            <p>{{name}}/{{nation}}</p>
            <p>{{nation}}</p>
            <div p-each="honors">
                <span>{{@self}} </span>
            </div>
            <div>
                <div p-for="honors">{{@self}}</div>
            </div>
        </div>
        <div>
            <select name="" id="">
                <option value="0">请选择</option>
                <option p-for="list.selects" p-bind="value:{{value}}">{{content}}</option>
            </select>
        </div>
        <p>{{price}}</p>
        <div p-each="tags">
            <p p-if="{{@index}} % 2 == 0">{{add(@index)}}:{{@self}}:{{@root.title}}</p>
        </div>
        <p class="local">{{@window.uid}}</p>
        <div p-com="demo.book" p-context="|{title: '三国', author: '罗', price: 150}"></div>
        <div p-com="demo.book" p-context="|{title: '水浒', author: '施', price: 99}"></div>
        <div p-com="demo.radio" p-context="list"></div>
        <div p-com="demo.radio" p-context="list"></div>
    </div>
    <button onclick="setName()">click me</button>
</body>

</html>